import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const plmfile: AppRouteModule = {
  path: '/plm',
  name: 'PlmDocList',
  component: LAYOUT,
  redirect: '/plm/doc/pLMDocInfo/fileView',
  meta: {
    icon: 'ion:person-outline',
    title: t('文档库'),
    orderNo: 100000,
  },
  children: [
    {
      path: '/plm/doc/pLMDocInfo/fileView',
      name: 'ViewsPlmDocPLMDocInfoFileView',
      component: () => import('/@/views/plm/doc/pLMDocInfo/PlmDocView.vue'),
      meta: {
        icon: 'ion:person-outline',
        title: t('预览页'),
      },
    },
  ],
};

export default plmfile;
